﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace iMES.Entity.DomainModels
{
    public partial class Ware_Product: SysEntity
    {
        /// <summary>
        ///成品主键
        /// </summary>
        [Key]
        [Display(Name = "成品主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid ProductId { get; set; }
        /// <summary>
        ///成品编号
        /// </summary>
        [Display(Name = "成品编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ProductCode { get; set; }
        /// <summary>
        ///成品名称
        /// </summary>
        [Display(Name = "成品名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ProductName { get; set; }
        /// <summary>
        ///规格型号
        /// </summary>
        [Display(Name = "规格型号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ProductType { get; set; }
        /// <summary>
        ///批次号
        /// </summary>
        [Display(Name = "批次号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ProductBatch { get; set; }
        /// <summary>
        ///单位
        /// </summary>
        [Display(Name = "单位")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ProductCompany { get; set; }
        /// <summary>
        ///库存上限
        /// </summary>
        [Display(Name = "库存上限")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ProductNumS { get; set; }
        /// <summary>
        ///库存下限
        /// </summary>
        [Display(Name = "库存下限")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ProductNumX { get; set; }
        /// <summary>
        ///报警天数
        /// </summary>
        [Display(Name = "安全库存")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ProductSave { get; set; }
        /// <summary>
        ///状态
        /// </summary>
        [Display(Name = "状态")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ProductState { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ProductNote { get; set; }
        /// <summary>
        ///图片
        /// </summary>
        [Display(Name = "图片")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ProductImg { get; set; }
        /// <summary>
        ///原料管理主键（外键）
        /// </summary>
        [Display(Name = "原料管理主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid RawmanagementId { get; set; }
    }
}
